.class Lcom/netease/newsreader/activity/NewsReader$47;
.super Ljava/lang/Thread;
.source "NewsReader.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/NewsReader;->refreshNew()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;

.field private final synthetic val$id:Ljava/lang/String;

.field private final synthetic val$tid:I

.field private final synthetic val$url:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;Ljava/lang/String;ILjava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iput-object p2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->val$url:Ljava/lang/String;

    iput p3, p0, Lcom/netease/newsreader/activity/NewsReader$47;->val$tid:I

    iput-object p4, p0, Lcom/netease/newsreader/activity/NewsReader$47;->val$id:Ljava/lang/String;

    .line 4682
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    .line 4684
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$31(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v3

    monitor-enter v3

    .line 4691
    :try_start_0
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$31(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    .line 4692
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$31(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v2

    iget-object v4, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-string v5, "http://c.3g.163.com/nc/article/headline/"

    iget-object v6, p0, Lcom/netease/newsreader/activity/NewsReader$47;->val$url:Ljava/lang/String;

    const/4 v7, 0x0

    const/16 v8, 0x14

    invoke-static {v4, v5, v6, v7, v8}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v4

    invoke-interface {v2, v4}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 4695
    const/4 v2, 0x0

    iget-object v4, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v4}, Lcom/netease/newsreader/activity/NewsReader;->access$143(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2, v4, v5}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadAdvertismentStr(IILandroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 4696
    .local v0, advertismentString:Ljava/lang/String;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    .line 4697
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$4(Lcom/netease/newsreader/activity/NewsReader;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v4, "advertisment_json_string"

    invoke-interface {v2, v4, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 4700
    :cond_0
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v1

    .line 4701
    .local v1, msg:Landroid/os/Message;
    const/4 v2, 0x1

    iput v2, v1, Landroid/os/Message;->what:I

    .line 4702
    iget v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->val$tid:I

    iput v2, v1, Landroid/os/Message;->arg1:I

    .line 4703
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->val$id:Ljava/lang/String;

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 4704
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$47;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 4684
    monitor-exit v3

    .line 4707
    return-void

    .line 4684
    .end local v0           #advertismentString:Ljava/lang/String;
    .end local v1           #msg:Landroid/os/Message;
    :catchall_0
    move-exception v2

    monitor-exit v3
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v2
.end method
